package cm.ph.shopping.facade.order.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Table;

import com.ph.shopping.common.core.base.BaseEntity;

@Table(name="ph_agent_order")
public class PhAgentOrder extends BaseEntity{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** 订单号 */
	@Column(name="orderNo")
    private String orderNo;

    /** 供应商id(商品的供应商) */
	@Column(name="supplerId")
    private Long supplerId;

    /** 订单描述 */
	@Column(name="description")
    private String description;

    /** 联系人 */
	@Column(name="contacts")
    private String contacts;

    /** 联系电话 */
	@Column(name="telPhone")
    private String telPhone;

    /** 详细地址 */
	@Column(name="address")
    private String address;

    /** 商品总金额 */
	@Column(name="money")
    private BigDecimal money;

    /** 物流费用 */
	@Column(name="freight")
    private BigDecimal freight;

    /** 订单总金额(物流费用+商品总金额) */
	@Column(name="totalCost")
    private BigDecimal totalCost;

    /** 状态(0待审核，1待付款，2待发货，3已发货，4,交易完成，5订单取消，6退货中，7已退货) */
	@Column(name="status")
    private Integer status;

    /** 商户id(进货人) */
	@Column(name="agentId")
    private Long agentId;

    /** 物流公司 */
	@Column(name="logisticsCompany")
    private String logisticsCompany;

    /** 物流编号 */
	@Column(name="logisticsNo")
    private String logisticsNo;

    /** 发货地址(ph_manager_order_address表id) */
	@Column(name="sendAddressId")
    private Long sendAddressId;

    /** 收货地址(ph_manager_order_address表id) */
	@Column(name="shippingAddressId")
    private Long shippingAddressId;


    /** 1:未分润 2:已分润 */
	@Column(name="bonus")
    private Integer bonus;

    /** 取消订单者id(代理商id或者供应商id) */
	@Column(name="cancelUserId")
    private Long cancelUserId;
	
	/** 物流公司id */
	@Column(name="logisticsId")
	private Long logisticsId;

	@Column(name="md5")
	private String md5;
	
	@Column(name="sendAddress")
	private  String sendAddress;
	
	
	@Column(name="sendContacts")
	private  String 		sendContacts;
	
	@Column(name="sendTelPhone")
	private  String 	sendTelPhone;
	
    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo == null ? null : orderNo.trim();
    }

    public Long getSupplerId() {
        return supplerId;
    }

    public void setSupplerId(Long supplerId) {
        this.supplerId = supplerId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts == null ? null : contacts.trim();
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone == null ? null : telPhone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getFreight() {
        return freight;
    }

    public void setFreight(BigDecimal freight) {
        this.freight = freight;
    }

    public BigDecimal getTotalCost() {
        return totalCost;
    }

    public void setTotalCost(BigDecimal totalCost) {
        this.totalCost = totalCost;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getAgentId() {
        return agentId;
    }

    public void setAgentId(Long agentId) {
        this.agentId = agentId;
    }

    public String getLogisticsCompany() {
        return logisticsCompany;
    }

    public void setLogisticsCompany(String logisticsCompany) {
        this.logisticsCompany = logisticsCompany == null ? null : logisticsCompany.trim();
    }

    public String getLogisticsNo() {
        return logisticsNo;
    }

    public void setLogisticsNo(String logisticsNo) {
        this.logisticsNo = logisticsNo == null ? null : logisticsNo.trim();
    }

    public Long getSendAddressId() {
        return sendAddressId;
    }

    public void setSendAddressId(Long sendAddressId) {
        this.sendAddressId = sendAddressId;
    }

    public Long getShippingAddressId() {
        return shippingAddressId;
    }

    public void setShippingAddressId(Long shippingAddressId) {
        this.shippingAddressId = shippingAddressId;
    }

    public Integer getBonus() {
        return bonus;
    }

    public void setBonus(Integer bonus) {
        this.bonus = bonus;
    }

    public Long getCancelUserId() {
        return cancelUserId;
    }

    public void setCancelUserId(Long cancelUserId) {
        this.cancelUserId = cancelUserId;
    }

	public Long getLogisticsId() {
		return logisticsId;
	}

	public void setLogisticsId(Long logisticsId) {
		this.logisticsId = logisticsId;
	}

	public String getMd5() {
		return md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}

	public String getSendAddress() {
		return sendAddress;
	}

	public void setSendAddress(String sendAddress) {
		this.sendAddress = sendAddress;
	}

	public String getSendContacts() {
		return sendContacts;
	}

	public void setSendContacts(String sendContacts) {
		this.sendContacts = sendContacts;
	}

	public String getSendTelPhone() {
		return sendTelPhone;
	}

	public void setSendTelPhone(String sendTelPhone) {
		this.sendTelPhone = sendTelPhone;
	}
	
	
    
}